package com.zmn.plat.common.dto.company;

import com.zmn.common.utils.pager.Operator;

/**
 *
 * 描述: 
 *
 * @auther tanghongjun
 * @since 2019/5/9 10:48
 */
public class BaseCompanyCategoryDRO extends Operator {
    /**
     * 公司区县服务分类关联
     */
    private Integer relationId;

    /**
     * 区县ID
     */
    private Integer relateId;

    /**
     * 服务分类ID
     */
    private Integer servCategId;

    /**
     * 产品一级分类ID
     */
    private Integer categOneId;

    /**
     * 产品二级分类ID
     */
    private Integer categId;

    private static final long serialVersionUID = 1L;

    public Integer getRelationId() {
        return relationId;
    }

    public void setRelationId(Integer relationId) {
        this.relationId = relationId;
    }

    public Integer getRelateId() {
        return relateId;
    }

    public void setRelateId(Integer relateId) {
        this.relateId = relateId;
    }

    public Integer getServCategId() {
        return servCategId;
    }

    public void setServCategId(Integer servCategId) {
        this.servCategId = servCategId;
    }

    public Integer getCategOneId() {
        return categOneId;
    }

    public void setCategOneId(Integer categOneId) {
        this.categOneId = categOneId;
    }

    public Integer getCategId() {
        return categId;
    }

    public void setCategId(Integer categId) {
        this.categId = categId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseCompanyCategoryDRO other = (BaseCompanyCategoryDRO) that;
        return (this.getRelationId() == null ? other.getRelationId() == null : this.getRelationId().equals(other.getRelationId())) && (this.getRelateId() == null ? other.getRelateId() == null : this.getRelateId().equals(other.getRelateId())) && (this.getServCategId() == null ? other.getServCategId() == null : this.getServCategId().equals(other.getServCategId())) && (this.getCategOneId() == null ? other.getCategOneId() == null : this.getCategOneId().equals(other.getCategOneId())) && (this.getCategId() == null ? other.getCategId() == null : this.getCategId().equals(other.getCategId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRelationId() == null) ? 0 : getRelationId().hashCode());
        result = prime * result + ((getRelateId() == null) ? 0 : getRelateId().hashCode());
        result = prime * result + ((getServCategId() == null) ? 0 : getServCategId().hashCode());
        result = prime * result + ((getCategOneId() == null) ? 0 : getCategOneId().hashCode());
        result = prime * result + ((getCategId() == null) ? 0 : getCategId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", relationId=").append(relationId);
        sb.append(", relateId=").append(relateId);
        sb.append(", servCategId=").append(servCategId);
        sb.append(", categOneId=").append(categOneId);
        sb.append(", categId=").append(categId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}